
<%--
  Created by IntelliJ IDEA.
  User: 本间芽衣子
  Date: 2021/4/19
  Time: 14:29
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>全部动物</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <LINK rel="Bookmark" href="${pageContext.request.contextPath}/static/admin/img/favicon.ico">
    <LINK rel="Shortcut Icon" href="${pageContext.request.contextPath}/static/admin/img/favicon.ico"/>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <small>用户列表--显示所有用户</small>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/update">新增动物</a>        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>编号</th>
                    <th>账户名称</th>
                    <th>账户金额</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="animalInfo" items="${account1}">
                    <tr>
                        <th>${animalInfo.id}</th>
                        <th>${animalInfo.name}</th>
                        <th>${animalInfo.money}</th>
                        <td>
                            <a href="${pageContext.request.contextPath}/deleteUser/${animalInfo.id}">删除</a>
                            <a href="${pageContext.request.contextPath}/update/${animalInfo.id}">修改</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>

</div>


</body>
</html>
